# -*- coding: utf-8 -*-
# File : db_util.py
# Author: taoyahui
# Date : 2022/5/4
import sqlite3

connect = sqlite3.connect('my.db')
cursor = connect.cursor()
cursor.execute("select * from student2")
db_res = cursor.fetchall()
print(type(db_res))
for stu in db_res:
    print(f'{stu[0]}, {stu[1]}')
